package com.ushine.design.design.c_behavioral_pattern.a_chain_of_responsibility.a_practice;

public class Client {
    public static void main(String[] args) {
        Handler handler00, handler01, handler02;
        handler00 = new ConcreteHandlerA();
        handler01 = new ConcreteHandlerB();
        handler02 = new ConcreteHandlerC();

        //处理请求
        handler00.setSuccessor(handler01);
        handler01.setSuccessor(handler02);

        handler00.handleRequest("请求对象。");
    }
}
